import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }


//工单List
export function getInHiddenDangerPage(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/getInHiddenDangerPage"),
        method: 'post',
        data
    })
}
//添加工单
export function addInHiddenDanger(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/addInHiddenDanger"),
        method: 'post',
        data
    })
}
//修改工单
export function updateInHiddenDanger(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/updateInHiddenDanger"),
        method: 'post',
        data
    })
}
//删除工单
export function deleteInHiddenDanger(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/deleteInHiddenDanger"),
        method: 'post',
        data
    })
}
//工单Vo
export function getInHiddenDanger(data){
    return request({
        url: getUrl("admin/inHiddenDanger/getInHiddenDanger"),
        method: 'post',
        data
    })
}

//工单List
export function getInHiddenDangerList(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/getInHiddenDangerList"),
        method: 'post',
        data
    })
}
//分配人员
export function assignPeople(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/assignPeople"),
        method: 'post',
        data
    })
}

//退回
export function backOff(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/backOff"),
        method: 'post',
        data
    })
}
//确认收到
export function determineHiddenDanger(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/determineHiddenDanger"),
        method: 'post',
        data
    })
}

//开始执行
export function startChangeStatus(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/startChangeStatus"),
        method: 'post',
        data
    })
}

//预计整改时间
export function reportRectificationTime(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/reportRectificationTime"),
        method: 'post',
        data
    })
}
//审核过后时间
export function reviewRectificationTime(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/reviewRectificationTime"),
        method: 'post',
        data
    })
}
//确定完成
export function hiddenDangerUltimateEnd(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/hiddenDangerUltimateEnd"),
        method: 'post',
        data
    })
}
//继续执行
export function continueToRectify(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/hiddenDangerContinueToRectify"),
        method: 'post',
        data
    })
}

//最终审核
export function approved(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/approved"),
        method: 'post',
        data
    })
}
//审核未通过
export function unapproved(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/unapproved"),
        method: 'post',
        data
    })
}
//图片
export function pictureUpload(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/pictureUpload"),
        method: 'post',
        data
    })
}

export function fromHiddenTroubleToFault(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/fromHiddenTroubleToFault"),
        method: 'post',
        data
    })
}

export function hiddenDangerTurnMaintenance(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/hiddenDangerTurnMaintenance"),
        method:'post',
        data
    })
}
export function inputUserAndTime(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/inputUserAndTime"),
        method:'post',
        data
    })
}

export function fireReviewRectificationTime(data) {
    return request({
        url: getUrl("admin/inHiddenDanger/fireReviewRectificationTime"),
        method: 'post',
        data
    })
}